package testcase;

import static org.testng.Assert.assertEquals;

import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

import base.BaseDriver;
import pages.LoginPage;
import pages.MainPage;

public class MainPageTest extends BaseDriver{
	MainPage main_page;
	LoginPage login_page;
	
	@BeforeMethod
	public void init() throws InterruptedException {
		login_page=new LoginPage(driver);
		main_page=login_page.loginSuccess("panglimei","123456");
	}
	
	@Test
	public void testClickSuccess() throws InterruptedException {
		main_page.clickPersonalInformationSuccess();
		assertEquals(driver.currentActivity(),".Activity.PersonActivity");
	}
	
}
